<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\product\Product */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="product-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'goods_id')->textInput() ?>

    <?= $form->field($model, 'sn')->textInput(['maxlength' => 20]) ?>

    <?= $form->field($model, 'sn_purchase')->textInput(['maxlength' => 20]) ?>

    <?= $form->field($model, 'sn_intel')->textInput(['maxlength' => 20]) ?>

    <?= $form->field($model, 'goods_attr')->textInput(['maxlength' => 50]) ?>

    <?= $form->field($model, 'goods_attr_str')->textInput(['maxlength' => 150]) ?>

    <?= $form->field($model, 'number_stock')->textInput() ?>

    <?= $form->field($model, 'number_lock')->textInput() ?>

    <?= $form->field($model, 'price_market')->textInput(['maxlength' => 10]) ?>

    <?= $form->field($model, 'price_cost')->textInput(['maxlength' => 10]) ?>

    <?= $form->field($model, 'img')->textInput(['maxlength' => 45]) ?>

    <?= $form->field($model, 'name_short')->textInput(['maxlength' => 50]) ?>

    <?= $form->field($model, 'is_buy_min_disable')->textInput() ?>

    <?= $form->field($model, 'is_buy_setp_disable')->textInput() ?>

    <?= $form->field($model, 'weight')->textInput() ?>

    <?= $form->field($model, 'supplier_id')->textInput() ?>

    <?= $form->field($model, 'slot')->textInput(['maxlength' => 50]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '新建' : '更新', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
